package com.techfengs.chapter04;

import java.util.Scanner;

public class Input {
  public static void main (String[] args) {
    // 创建Scanner类的对象
    Scanner in = new Scanner(System.in);
    // 调用Scanner类的功能
    System.out.println("请输入姓名：");
    String name = in.next();

    System.out.println("请输入年龄：");
    int age = in.nextInt();

    System.out.println("请输入薪水：");
    double salary = in.nextDouble();

    in.close();

    System.out.println("您的姓名：" + name);
    System.out.println("您的年龄：" + age);
    System.out.println("您的薪水：" + salary);
  }
}
